#define _CRT_SECURE_NO_WARNINGS 1
#include"my_string.h"

char* my_strstr(const char* str1, const char* str2) {
	assert(str1 && str2);
	char* cur1 = NULL;
	char* cur2 = NULL;
	char* ret = str1;
	while (*ret) {
		cur1 = ret;
		cur2 = str2;
		while (*cur1 && *cur2 && *cur1 == *cur2) {
			cur1++;
			cur2++;
		}
		if (*cur2 == '\0') {
			return (char*)ret;
		}
		ret++;
	}
	return NULL;
}